# system/urls.py

from django.urls import path, include
from django.views.generic import RedirectView
from rest_framework.documentation import include_docs_urls

urlpatterns = [
    # 重定向根路径到接口文档
    path('', RedirectView.as_view(url='/api/v1/docs/')),
    # API文档
    path('docs/', include_docs_urls(title='System API')),

    # 系统认证模块
    path('auth', include('system.auth.auth_urls')),
    # 系统用户模块
    path('users', include('system.users.users_urls')),
    # 系统角色模块
    path('roles', include('system.roles.roles_urls')),
    # 系统菜单模块
    path('menus', include('system.menus.menus_urls')),
    # 系统部门模块
    path('dept', include('system.dept.dept_urls')),
    # 系统字典模块
    path('dicts', include('system.dicts.dicts_urls')),
    # 文件上传模块
    path('files', include('system.files.files_urls')),
    # 通知公告模块
    path('notices', include('system.notices.notices_urls')),
    # 系统日志模块
    path('logs', include('system.logs.logs_urls')),
]
